﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace EFModel.Migrations
{
    public partial class lx : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "salary_standard",
                columns: table => new
                {
                    ssd_id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    standard_id = table.Column<string>(maxLength: 300, nullable: true),
                    standard_name = table.Column<string>(maxLength: 300, nullable: true),
                    designer = table.Column<string>(maxLength: 300, nullable: true),
                    register = table.Column<string>(maxLength: 300, nullable: true),
                    checker = table.Column<string>(maxLength: 300, nullable: true),
                    changer = table.Column<string>(maxLength: 300, nullable: true),
                    regist_time = table.Column<DateTime>(nullable: false),
                    check_time = table.Column<DateTime>(nullable: false),
                    change_time = table.Column<DateTime>(nullable: false),
                    salary_sum = table.Column<double>(nullable: false),
                    check_status = table.Column<int>(nullable: false),
                    change_status = table.Column<int>(nullable: false),
                    check_comment = table.Column<string>(maxLength: 300, nullable: true),
                    remark = table.Column<string>(maxLength: 300, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_salary_standard", x => x.ssd_id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "salary_standard");
        }
    }
}
